// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently.

// 在鸿蒙项目中这里是下面的 hvigor-ohos-plugin
// import { hapTasks } from '@ohos/hvigor-ohos-plugin';
// export { HapTasks } from '@ohos/hvigor-ohos-arkui-x-plugin';
import { HapTasks } from '@ohos/hvigor-ohos-arkui-x-plugin';


// 1、导入
import { routerRegisterPlugin, PluginConfig } from 'router-register-plugin'

// 2、初始化配置
const config: PluginConfig = {
  scanDirs: ['src/main/ets/ui/page', 'src/main/ets/ability'], // 扫描的目录，如果不设置，默认是扫描src/main/ets目录
  logEnabled: true, // 查看日志
  viewNodeInfo: false, // 查看节点信息
  isAutoDeleteHistoryFiles: true // 删除无用编译产物

}
export default {
  system: HapTasks,
  // 3、添加插件
  plugins:[routerRegisterPlugin(config)]
}
